var HYPERLINK_COLUMN_INDEX = 2;
document.onmouseover = function()
{
	var src = event.srcElement;
	if ('TD' != src.tagName)
		return;
	var tr = src.parentElement;
	if (tr.className == 'odd')
		tr.className = 'even';			
}
document.onmouseout = function()
{
	var src = event.srcElement;
	if ('TD' != src.tagName)
		return;
	var tr = src.parentElement;
	if (tr.className == 'even')
		tr.className = 'odd';			
}
document.onclick = function()
{
	var src = event.srcElement;
	if ('TD' != src.tagName)
		return;
	var tr = src.parentElement;
	if (tr.className != 'even' && tr.className != 'odd')
		return;
	var td = tr.children[HYPERLINK_COLUMN_INDEX];
	var a  = td.children[0];
	a.click();
}
function ToggleTable(td)
{
	var minus = td.children[0];
	var plus  = td.children[1];
	var table = td.parentElement.parentElement.parentElement.nextSibling;
	var div   = table.nextSibling;
	var makeVisible = (minus.style.display == 'none');
	ShowHide(minus, makeVisible);
	ShowHide(plus, !makeVisible);
	ShowHide(table, makeVisible);
	ShowHide(div,   makeVisible);
}
function ShowHide(obj, isVisible)
{	obj.style.display = (isVisible) ? '' : 'none'; }
